package com.cal.calonecal.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author 76004
 * @apiNote
 * @date 2023/6/5 23:00
 */
@Data
@TableName("class_room")
public class ClassRoom {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long teacherId;

    private Date createTime;

    private String className;

    private Integer maxStudentCnt;

    private Integer grade;

    //1表示被封禁, 2表示隐藏，0表示可见
    private Integer status;

    @TableField(exist = false)
    private Integer nowStudents;
}
